<!DOCTYPE html>
<html lang="en" id="epicentr">
<head>
	<title><?=$page_title;?></title>
	<meta http-equiv="Content-type" value="text/html; charset=UTF-8" />

    <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
    <link rel="stylesheet" href="<?=base_url()?>assets/epicentr/css/yuiapp.css" type="text/css">
    <link id="theme" rel="stylesheet" href="<?=base_url()?>assets/epicentr/css/purple.css" type="text/css">
		<link rel="stylesheet" href="<?=base_url()?>assets/epicentr/css/override.css" type="text/css">
</head>
<body class="rounded <?php if ($ajax):?> ajax<?php endif;?>">
		
<div id="doc3" class="yui-t6">
	
    <div id="hd">
			<!-->
			<div class="search">
				<form><input class="searchTerm" name="searchterm" type="search" /> </form>
			</div>
			<-->
			<div id="navigation">
				<?php if ($modules):?>
				<ul id="primary-navigation">
					<li <?php if ($maintab == 'home') echo 'class="current"';?>><a href="<?=site_url('');?>" title="Take Me Home..."><span>epicentr</span></a></li>
					<?php if ($permissions->seeprojectstab):?><li <?php if ($maintab == 'projects') echo 'class="current"';?>><a href="<?=site_url('epicentr/projects');?>">Projects</a></li><?php endif;?>
					<?php if ($permissions->seereporting):?><li <?php if ($maintab == 'reporting') echo 'class="current"';?>><a href="<?=site_url('reporting');?>">Reporting</a></li><?php endif;?>
					<?php if ($permissions->seemycompanytab):?><li <?php if ($maintab == 'mycompany') echo 'class="current"';?>><a href="<?=site_url('companies/view/'.$mycompany->id);?>"><?=$mycompany->company_name;?></a></li><?php endif;?>
					<?php foreach ($modules as $text => $link):?>
						<li <?php if (trim($maintab) == trim($text)) echo 'class="active"';?>><a href="<?=$link;?>"><?=$text;?></a></li>
					<?php endforeach;?>
				</ul>
				<?php endif;?>
		
				<ul id="user-navigation">
					<li><a href="<?=site_url('users/profile');?>">Profile</a></li>
			    	<li><a href="<?=site_url('cerberus/logout');?>">Logout</a></li>
				</ul>
				<div class="clear"></div>
			</div>
			
		</div>
		  
<div id="bd">
	<div id="yui-main">
		<div class="yui-b"><div class="yui-g">

	<?php if (strlen($flashmessage)):?><p class="alert notice"><?=$flashmessage;?></p><?php endif;?>
	<?php if (strlen($flasherror)):?><p class="alert error"><?=$flasherror;?></p><?php endif;?>
